<%@page contentType="text/html;charset=UTF-8"%>
<%@page pageEncoding="UTF-8"%>
<%@ page session="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>@Controller Example</title>
        <c:import url="/WEB-INF/formating/link.jsp"/>
    </head>
    <body>

        <c:import url="/WEB-INF/formating/menu.jsp"/>
        <div id="conteiner">
            <c:import url="/WEB-INF/formating/sideMenu.jsp"/>
            <div id="main">
                <h1>SUCCESS </h1>
                <table>
                    <tr>
                        <th>UserID</th>
                        <th>Name</th>
                        <th>Surname</th>
                        <th>Username</th>
                        <th>e-mail</th>
                        <th>Street</th>
                        <th>Street no.</th>
                        <th>City</th>
                        <th>Zip code</th>
                        <th>Type</th>
                    </tr>
                    <tr>
                        <td><c:out value="${user.userID}"/></td>
                        <td><c:out value="${user.name}"/></td>
                        <td><c:out value="${user.surname}"/></td>
                        <td><c:out value="${user.username}"/></td>
                        <td><c:out value="${user.email}"/></td>
                        <td><c:out value="${user.street}"/></td>
                        <td><c:out value="${user.streetNo}"/></td>
                        <td><c:out value="${user.city}"/></td>
                        <td><c:out value="${user.zip}"/></td>
                        <td><c:out value="${user.roles}"/></td>
                    </tr>
                </table>

                <li><a href="user">Go back</a></li>
                <hr>
                    
                </hr>
            </div>
        </div>
        <c:import url="/WEB-INF/formating/foot.jsp"/>
    </body>
</html>
